const tagMenuTestData = [{
    title:"基本",
    key:"basic",
    icon:"file-zip",
    children:[{
        title:"年龄",
        key:"age",
        status:"on",
        icon:"hdd"
        
    },{
        title:"职业",
        key:"job",
        status:"on",
        icon:"message"
    },{
        title:"婚姻",
        key:"marital",
        status:"off",
        icon:"message"
    }

    ]
},
{
    title:"金融",
    key:"asset",
    icon:"file-zip",
    children:[{
        title:"余额",
        key:"balance",
        status:"on",
        icon:"hdd"
    },{
        title:"住房",
        key:"house",
        status:"off",
        icon:"message"
    },{
        title:"贷款",
        key:"loan",
        status:"on",
        icon:"message"
    }

    ]
},
{
    title:"综合",
    key:"other",
    icon:"file-zip",
    children:[{
        title:"是否青年",
        key:"is_young",
        status:"on",
        icon:"hdd"
    },{
        title:"净资产",
        key:"jzc",
        status:"on",
        icon:"message"
    }

    ]
},]


const allTagsTestData = [
    {
        name:"年龄",
        key:"age",
        icon:"hdd"
    },{
        name:"职业",
        key:"job",
        icon:"message"
    },{
        name:"婚姻",
        key:"marital",
        icon:"message"
    },

    {
        name:"余额",
        key:"balance",
        icon:"hdd"
    },{
        name:"住房",
        key:"house",
        icon:"message"
    },{
        name:"贷款",
        key:"loan",
        icon:"message"
    },
    {
        name:"是否青年",
        key:"is_young",
        icon:"hdd"
    },{
        name:"净资产",
        key:"jzc",
        icon:"message"
    }
    

]


const recommendTagsTestData = [
    {
        fromKey:'balance',
        key:"balance2",
        name:"余额>10000",
        weight: 0.3
        
     },
     {
        fromKey:'is_young',
        key:"is_young1",
        name:"是否青年",
        weight: 0.2
        
     },
     {
        fromKey:'age',
        key:"age2",
        name:"年龄<25",
        weight: -0.2
        
     },
     

]

/**
 * all tag detail data
 */
const tagDetailsTestData = [{
    key: "age",
    name:"年龄",
    description:"年龄",
    catagery:"基本标签",
    activityNum: 3,
    createTag: ["年龄>10","年龄<2","年龄>20","年龄>60","年龄<15","年龄>100","年龄>30"],
    ctime: "20220421",
    status: "on"
},{
    key:"balance",
    name:"余额",
    description:"余额",
    catagery:"金融标签",
    activityNum: 5,
    createTag:["余额>10000","余额<100"],
    ctime: "20220121",
    status: "off"
},{
    key:"is_young",
    name:"是否青年",
    description:"由年龄计算而来的标签（5-25）",
    catagery:"综合",
    activityNum: 1,
    createTag: ["是青年"],
    ctime: "20220211",
    status: "on"
}]

/**
 * 所有衍生标签
 * 描述：标签的所有衍生标签
 * 构造：
 */
 const derivedTagsTestData = [{
    key: "age",
    tags:[{
        key: "age1",
        name: "年龄>18",
    },
    {
        key: "age2",
        name: "年龄<30",
    },
    {
        key: "age3",
        name: "年龄>35",
    }]
},{
    key: "balance",
    tags:[{
        key: "balance1",
        name: "余额>10000",
    },
    {
        key: "balance2",
        name: "余额<100",
    }]
}
,{
    key: "is_young",
    tags:[{
        key: "is_young1",
        name: "是青年",
    }]
}
]


/**
 * 标签所有被调用的活动
 * 描述：标签所有被调用的活动
 * 构造：
 */
const relatedActivitiesTestData = [
    {
    key: "age",
    activities: [
        {
           key: "activity1",
           name: "活动1",
           tags: ["age1"]
        },
        {
            key: "activity2",
            name: "活动2",
            tags: ["age2"]
        },
        {
            key: "activity3",
            name: "活动3",
            tags: ["age1","age3"]
        }
   ]
    },{
        key: "balance",
        activities: [
            {
               key: "actvity1",
               name: "活动1",
               tags: ["balance1"]
            },
            {
                key: "activity2",
                name: "活动2",
                tags: ["balance1","balance2"]
            },
            {
                key: "activity3",
                name: "活动2",
                tags: ["balance1"]
            },
            {
                key: "activity4",
                name: "活动2",
                tags: ["balance1","balance2"]
            },
            {
                key: "activity5",
                name: "活动2",
                tags: ["balance1"]
            }
       ]
    }
    ,{
        key: "is_young",
        activities: [
            {
               key: "actvity1",
               name: "活动1",
               tags: ["is_young1"]
            },
            
       ]
    }
]



const tagRelationshipTestData = 
    [
        {"fromKey":"age","key":"group1-group3"
        ,"fromName":"年龄","name":"","rate":"0.2"
        ,"relate":
        [ {"fromKey":null,"key":"age2","name":null,"weight":"-0.10000000149011612"}
        ,{"fromKey":null,"key":"marital2","name":null,"weight":"-0.10000000149011612"}
        ,{"fromKey":null,"key":"is_young2","name":null,"weight":"-0.10000000149011612"}
        ]
    ,"relateKey":"age2","relateWeight":"-0.10000000149011612" }
    ,{"fromKey":"job","key":"group1-group2","fromName":"职业","name":"","rate":"0.2"
    ,"relate":
        [ {"fromKey":null,"key":"job1","name":null,"weight":"0.3499999940395355"}
        ,{"fromKey":null,"key":"is_young1","name":null,"weight":"0.3499999940395355"} ]
        ,"relateKey":"job1","relateWeight":"0.3499999940395355"}
        ,{"fromKey":"job","key":"job2","fromName":"职业","name":"职业 in 工人","rate":"0.4"
        ,"relate":[{"fromKey":null,"key":null,"name":null,"weight":"0.0"}
        ]
    ,"relateKey":null,"relateWeight":"0.0"}
    ,{"fromKey":"job","key":"job1","fromName":"职业","name":"职业 not in 工人","rate":"0.2"
    ,"relate":[
        {"fromKey":null,"key":"group2-group5","name":null,"weight":"-0.2800000011920929"}
        ,{"fromKey":null,"key":"group2-group1","name":null,"weight":"0.3199999928474426"}
    ]
    ,"relateKey":"group2-group5","relateWeight":"-0.2800000011920929"}
    ,{"fromKey":"is_young","key":"is_young1"
    ,"fromName":"是否青年","name":"是否青年 ✔","rate":"0.5","relate":
        [ {"fromKey":null,"key":"group2-group5","name":null,"weight":"-0.2800000011920929"}
        ,{"fromKey":null,"key":"group2-group1","name":null,"weight":"0.3199999928474426"}
        ]
    ,"relateKey":"group2-group5","relateWeight":"-0.2800000011920929"}
    ,{"fromKey":"is_young","key":"is_young2","fromName":"是否青年","name":"是否青年 ✘","rate":"0.6"
    ,"relate":[{"fromKey":null,"key":"group3-group2","name":null,"weight":"0.5"}]
    ,"relateKey":"group3-group2","relateWeight":"0.5"}
    ,{"fromKey":"job","key":"group3-group2","fromName":"职业","name":"","rate":"0.2"
    ,"relate":[{"fromKey":null,"key":"job1","name":null,"weight":"0.5"}
    ,{"fromKey":null,"key":"is_young1","name":null,"weight":"0.5"}]
    ,"relateKey":"job1","relateWeight":"0.5"}
    ,{"fromKey":"marital","key":"marital2","fromName":"婚姻","name":"婚姻 ✘","rate":"0.2"
    ,"relate":[{"fromKey":null,"key":"group3-group2","name":null,"weight":"0.5"}]
    ,"relateKey":"group3-group2","relateWeight":"0.5"}
    ,{"fromKey":"marital","key":"group1-group4","fromName":"婚姻","name":"","rate":"0.4"
    ,"relate":[
        {"fromKey":null,"key":"marital1","name":null,"weight":"0.20000000298023224"}
        ]
    ,"relateKey":"marital1","relateWeight":"0.20000000298023224"}
    ,{"fromKey":"age","key":"age2","fromName":"年龄","name":"年龄 > 10","rate":"0.2"
    ,"relate":[
        {"fromKey":null,"key":"group3-group2","name":null,"weight":"0.5"}
    ]
    ,"relateKey":"group3-group2","relateWeight":"0.5"}
    ,{"fromKey":"job","key":"group2-group5","fromName":"职业","name":"","rate":"0.4","relate":[
        {"fromKey":null,"key":"job2","name":null,"weight":"-0.2800000011920929"}],"relateKey":"job2","relateWeight":"-0.2800000011920929"},{"fromKey":"marital","key":"marital1","fromName":"婚姻","name":"婚姻 ✔","rate":"0.4","relate":[{"fromKey":null,"key":null,"name":null,"weight":"0.0"}]
        
        ,"relateKey":null,"relateWeight":"0.0"}
    ]
  


const tagTestData = {
    tagMenuTestData
    ,allTagsTestData
    ,recommendTagsTestData
    ,tagDetailsTestData
    ,derivedTagsTestData
    ,relatedActivitiesTestData
    ,tagRelationshipTestData}
export default tagTestData